<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--style="background-color: #F2F2F2"--%>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
    <script>
        var homePath = '${pageContext.request.contextPath}';
    </script>
    <style type="text/css">
        #adminHome i {
            display: none;
        }

        #main_tab {
            margin: 5px 0 !important;
        }

        #main_tab .layui-tab-content {
            padding: 2px 5px;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">layui 后台布局</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">邮件管理</a></dd>
                    <dd><a href="javascript:;">消息管理</a></dd>
                    <dd><a href="javascript:;">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" lay-unselect="">
                <a href="javascript:;">
                    <img src="${pageContext.request.contextPath}/${sessionScope.user.avatar}"
                         class="layui-nav-img">${sessionScope.user.nickname}</a>
                <dl class="layui-nav-child">
                    <dd><a href="${pageContext.request.contextPath}/user/${sessionScope.user.id}">个人中心</a></dd>
                    <dd><a href="${pageContext.request.contextPath}/user/logout">退了</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="admin-left-nav">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;" lay-id="adminHome" lay-href="${pageContext.request.contextPath}/admin/home">
                        <i class="layui-icon layui-icon-home"></i>&nbsp;&nbsp;主页
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" lay-id="notice" lay-href="${pageContext.request.contextPath}/admin/notice">
                        <i class="layui-icon layui-icon-list"></i>&nbsp;&nbsp;公告
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" lay-id="activity"
                       lay-href="${pageContext.request.contextPath}/admin/activity">
                        <i class="layui-icon layui-icon-light"></i>&nbsp;&nbsp;活动
                    </a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-read"></i>&nbsp;&nbsp;文章</a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;" lay-id="article"
                               lay-href="${pageContext.request.contextPath}/admin/article">
                                文章列表
                            </a>
                        </dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;" lay-id="articleComment"
                               lay-href="${pageContext.request.contextPath}/admin/article/comment">
                                评论管理
                            </a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-carousel"></i>&nbsp;&nbsp;相册</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" lay-id="galleryList"
                               lay-href="${pageContext.request.contextPath}/admin/gallery">相册列表</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" lay-id="uploadPhoto"
                               lay-href="${pageContext.request.contextPath}/gallery/photo/upload">上传相片</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-user"></i>&nbsp;&nbsp;用户</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" lay-id="userList"
                               lay-href="${pageContext.request.contextPath}/admin/user">网站用户</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" lay-id="adminList"
                               lay-href="${pageContext.request.contextPath}/admin/adminUser">管理员</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon layui-icon-set-sm"></i>&nbsp;&nbsp;设置</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" lay-id="setting" lay-href="">网站设置</a></dd>
                        <dd><a href="javascript:;" lay-id="baseInfo" lay-href="">基本资料</a></dd>
                        <dd><a href="javascript:;" lay-id="updatePsd" lay-href="">修改密码</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="padding: 0 10px;">
        <!-- 内容主体区域 -->
        <div id="main_tab" class="layui-tab layui-tab-card" lay-allowclose="true" lay-filter="admin-tab">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="adminHome" id="adminHome">
                    主页
                </li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src="${pageContext.request.contextPath}/admin/home" frameborder="0"
                            style="width: 100%;height: 100%"></iframe>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © xxx.com - made by GZC
    </div>
</div>
<script src="${pageContext.request.contextPath}/static/js/admin/index.js"></script>
</body>
</html>